<?php
namespace Admin\Model;

use Think\Model;
class AuthGroupModel extends Model {
    protected $tableName = 'auth_group';


    function _initialize() {

        $this->userModel = M("auth_group");
    }

   public function group($group_id){
       $group_rules=array();

       foreach($group_id as $k=>$value){

            $re=$this->userModel->where(array('id'=>$group_id[$k]['group_id']))->field('rules')->select();
               //dump($value);
               $group_rules=array_merge($group_rules,$re);

        }
       return $group_rules;

   }

}